<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>跳转提示</title>
</head>
<body>
    <div>
		<?php if ($code == 1){ ?>
		<h1 style="font-size:100px;">:)</h1><br>
		<h3 style="font-size:50px;"><?php echo strip_tags($msg); ?></h3>
		<?php }else{ ?>
		<h1 style="font-size:100px;">:(</h1><br>
		<h3 style="font-size:50px;"><?php echo strip_tags($msg); ?></h3>
		<?php } ?>
        <p>页面自动 <a id="href" href="<?php echo $url; ?>">跳转</a> 等待时间： <b id="wait"><?php echo $wait; ?></b></p>
    </div>
    <script type="text/javascript">
        (function(){
            var wait = document.getElementById('wait'),href = document.getElementById('href').href;
            var interval = setInterval(function(){
                var time = --wait.innerHTML;
                if(time <= 0) {
                    location.href = href;
                    clearInterval(interval);
                };
            }, 1000);
        })();
    </script>
</body>
</html>
